package com.xiaoxu.springCloudAccount.service;

import java.util.List;


import com.github.pagehelper.PageInfo;

import com.xiaoxu.account.entity.Role;
import com.xiaoxu.common.vo.Result;
import com.xiaoxu.common.vo.Search;


public interface RoleService {

	Result<Role> insertRole(Role role);

	Result<Role> updateRole(Role role);

	Result<Object> deleteRoelById(int id);

	Role getRoleById(int id);

	List<Role> getRolesByUserId(int userId);

	List<Role> getRoles();

	PageInfo<Role> getRolesBySearchBean(Search search);
}
